﻿using System;
using ProjScan.Config;
using ProjScan.Config.GUIConfig;
using ProjScan.Modules;
using ProjScan.Tools;
using UnityEditor;
using UnityEngine;

namespace ProjScan.ScanGUI.Page
{
	// Token: 0x02000270 RID: 624
	internal class ScenesCheckPage : BasePage<ScenesCheckConfig>
	{
		// Token: 0x060010BB RID: 4283 RVA: 0x0004D330 File Offset: 0x0004B530
		public ScenesCheckPage()
		{
			this.pageId = "Scenes_Check";
			this.pageName = "场景检测";
			this.fixModule = Module.Scenes_Fix;
		}

		// Token: 0x060010BC RID: 4284 RVA: 0x0000832A File Offset: 0x0000652A
		public override void Init()
		{
			this.dicRuleInfo = Singleton<RuleInfoManager>.Instance.dicRuleInfoByPage["2"];
			this.CreateRuleGUI();
		}

		// Token: 0x060010BD RID: 4285 RVA: 0x0004D380 File Offset: 0x0004B580
		public override void OnGUI(Rect mainRectangle)
		{
			this.rect = mainRectangle;
			GUITools.LabelWithStyle(" 基础设置：");
			GUITools.DrawColoredRectangle(this.rect.width);
			int num = (int)this.data.sceneCheckMode;
			EditorGUI.BeginChangeCheck();
			num = GUITools.ExecutePopupMethod("场景扫描模式[Scene Check Mode]: ", num, this.modes, this.rect.width / 2f, 250f, false);
			bool flag = EditorGUI.EndChangeCheck();
			if (flag)
			{
				this.data.sceneCheckMode = (ScenesCheckConfig.e_Scene_Check_Mode)num;
			}
			GUITools.DrawSeparator(ScanSettingWindow.I.pageWidth - 20f);
			this.GUITitle(true);
			GUITools.DrawSeparator(ScanSettingWindow.I.pageWidth - 20f);
		}

		// Token: 0x040009E5 RID: 2533
		private string[] modes = new string[]
		{
			"All",
			"Build Only"
		};
	}
}
